import QtQuick 2.0

MouseArea{
    id:btnMouseArea
    property alias text: btnText.text
    property color textColor: CTheme.lightTextColor
    property color lineColor: CTheme.primaryColor

    Text {
        id: btnText
        anchors.centerIn: parent
        color: textColor
        text: qsTr("text")
    }

    Rectangle{
        id:bottomLine
        radius: 2
        width:parent.width
        height: 4
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 3
        color: lineColor
    }

    onPressed: {
        console.log(Qt.darker(lineColor,3) + " ## " + lineColor);
        bottomLine.color = Qt.darker(lineColor,2)
    }
    onReleased: {
        bottomLine.color = lineColor
    }
}
